package com.bawei.detail.api

import com.bawei.common.entity.CommendEntity
import com.bawei.common.entity.MovieVideoEntity
import com.bawei.detail.entity.AuthorEntity
import com.bawei.network.BaseResponse
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * Author: Jason Zhang
 * Date: 2024/3/9
 * Desc:
 */
interface DetailServerApi {

    @GET("/videoauthor/getAuthorById")
    suspend fun getAuthorById(@Query("userid") userId: String): BaseResponse<AuthorEntity>

    //获取推荐的视频
    @GET("/videomulti/getRecommendMutilVideo")
    suspend fun getRecommendMultiVideo(@Query("page") page: Int, @Query("pagesize") pageSize: Int): BaseResponse<List<MovieVideoEntity>>

    //获取二级分类视频
    @GET("/videomulti/getMutilVideoByTypeId")
    suspend fun getMultiVideoByTypeId(@Query("typeid") typeId: Int, @Query("page") page: Int, @Query("pagesize") pageSize: Int): BaseResponse<List<MovieVideoEntity>>

    @GET("/comment/getCommentByUserId")
    suspend fun getCommentByUserId(@Query("datatype") dataType: Int, @Query("itemid") itemId: String): BaseResponse<List<CommendEntity>>



}